<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of message
 *
 * @author zframework
 */
class Message extends AppModel {
    
    var $belongsTo = "Utilisateur";
    
    var $order = "Message.date ASC";


    var $validate = array(
        'corp' => array(
            'rule' => 'notEmpty',
            'message' => 'Il n\'y a pas de message'
        ),
        'utilisateur_id' => array(
            'rule' => 'numeric',
            'message' => 'Erreur [utilisateur_id]'
        ),
        'date' => array(
            'rule' => 'notEmpty',
            'message' => 'Erreur date non valide'
        )
    );
}

?>
